<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="${ctsCss}/table.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<%@ include file="/common/message-save1.jsp" %>
<body>
	<form id="rowValidation-form" class="form-horizontal" action="${ctx}/reportTemplateValidationController/saveRowValidation" method="post">
		<input type="hidden" name="templateId" value="${templateId}"/>
		<input type="hidden" name="validationType" value="1"/>
		<table>
			 <tr class="tab_grey">
			      <td width="100%" colspan="4">
			      	注：行校核公式需要严格按照指定方式填写，如不按指定方式填写将不会生成相应计算公式
      			  </td>
		     </tr>
		     <tr class="tab_grey">
			      <td width="100%" colspan="4">
      				填写规则：1)1栏>=2栏+3栏+4栏，对应填写为1>=2+3+4;2)1栏=2栏+3栏+4栏至6栏之和，对应填写为1=2+3+4~6;
      				3)1栏分别大于2栏、3栏、4栏，分别填写为1>2，然后再输入1>3,然后再输入1>4
      			  </td>
		     </tr>
		     <tr class="tab_grey">
			      <td width="30%">公式填写：</td>
			      <td width="70%" colspan="3">
			      		<textarea rows="3" style="width:240px" cols="120" id="validationJspWrite" name="validationJspWrite" required></textarea>
			      </td>
		     </tr>
		     <tr class="tab_grey">
			      <td width="30%">序号</td>
			      <td width="70%" colspan="3">
			      		<input type="text" id="validationDesc" name="validationDesc" value="" style="width:200px" maxlength='100' />
			      </td>
		     </tr>
		</table>
		<div  style="text-align: center;">
			<button type="button" class="btn btn-primary" id="saveBtn" onclick="rowValidationSaveInfo();">保存</button>
		</div>
	</form>
	
</body>

<script type="text/javascript">
$('#rowValidation-form').validate();

function rowValidationSaveInfo(){
	$("#rowValidation-form").submit();
}

</script>
</html>